using System.Collections.Generic;
using System.Linq;
using UnityEngine;

[CreateAssetMenu(fileName = "Effect35-", menuName = "Skill/Effect/Effect35-如果目标棋子没有哀伤印记,则给他设置效果,添加标记,如果有,重置回合数", order = 35)]
public class Effect35 : EffectBase
{
    public SkillConfig skillConfig;
    public EffectBase effect;
    public override void Apply(Pair pair, GameEvent e, List<Chess> targets)
    {
        if(targets == null) return;
        foreach (var target in targets)
        {
            if (target.ChessDetail.GriefMark == false)
            {
                skillConfig.Init(target);
                target.ChessDetail.GriefMark = true;
            }
            else
            {
                effect.ExternallyFunctions(target,3);
            }
            
        }
    }
}

